/**************************************************************************************** 
 Copyright © 2003-2012 hbasesoft Corporation. All rights reserved. Reproduction or       <br>
 transmission in whole or in part, in any form or by any means, electronic, mechanical <br>
 or otherwise, is prohibited without the prior written consent of the copyright owner. <br>
 ****************************************************************************************/
package com.hbasesoft.hamibot.entity;

import java.util.Date;

import com.hbasesoft.framework.db.core.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Transient;
import lombok.Getter;
import lombok.Setter;

/**
 * <Description> <br>
 * 
 * @author 王伟<br>
 * @version 1.0<br>
 * @taskId <br>
 * @CreateDate 2024年12月24日 <br>
 * @since V1.0<br>
 * @see com.hbasesoft.hamibot.entity <br>
 */
@Getter
@Setter
@Entity(name = "app_log")
public class AppLogEntity extends BaseEntity {

    /**
     * serialVersionUID <br>
     */
    private static final long serialVersionUID = 3150128034110512483L;

    /** 主键;主键 */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    /** 设备id;设备id */
    @Column(name = "device_id")
    private String deviceId;

    /** 方向;请求方向0-上行，1-下行 */
    @Column(name = "direction")
    private Integer direction;

    /** 命令;命令 */
    @Column(name = "cmd")
    private Integer cmd;

    /** 内容;内容 */
    @Column(name = "content")
    private String content;

    /** ip地址;ip地址 */
    @Column(name = "ip")
    private String ip;

    /** 地址;地址 */
    @Column(name = "address")
    private String address;

    /** 地址;地址 */
    @Column(name = "screenshot")
    private String screenshot;

    /** 操作系统;操作系统 */
    @Column(name = "os")
    private String os;

    /** 浏览器;浏览器 */
    @Column(name = "browser")
    private String browser;

    /** 创建时间;创建时间 */
    @Column(name = "create_time")
    private Date createTime;

    /** userAgent */
    @Transient
    private String userAgent;

    /** userAgent */
    @Transient
    private String cmdInfo;
}
